<template>
	<div class="content">
		<div class="center-box">
			<iframe :src='preview_url'
			  width="100%" height="100%" scrolling="yes" frameborder="0"
			></iframe>
		</div>
	</div>
</template>

<script>
	export default{
		data() {
			return {
				preview_url: '',
			}
		},
		mounted(e){
			console.log('预览问卷：', e, this.$route)
			this.preview_url = 'https://xxxx.xxxx.cn/web/#/pages/question/index?preview_id=' + this.$route.query.id
		},
	}
</script>

<style lang='scss' scoped>
	.center-box{
		box-sizing: border-box;
		padding: 0;
		margin: 0 auto;
		width: 500px;
		height: 100vh;
		overflow: hidden;
		border-left: 1px solid #ccc;
		border-right: 1px solid #ccc;
	}
</style>